<?php

namespace myadmindata\common;

use tpext\common\Module as baseModule;

class Module extends baseModule
{
    protected $version = '1.0.1';

    protected $name = 'myadmin.data';

    protected $title = 'myadmin演示';

    protected $description = '提供demo数据库脚本';

    protected $root = __DIR__ . '/../';

    /**
     * 后台菜单
     *
     * @var array
     */
    protected $menus = [
        [
            'title' => '商家中心',
            'sort' => 1,
            'url' => '#',
            'icon' => 'mdi mdi-store',
            'children' => [
                [
                    'title' => '店铺管理',
                    'sort' => 1,
                    'url' => '/admin/store/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '店铺分类',
                    'sort' => 2,
                    'url' => '/admin/storecategory/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '商家管理',
                    'sort' => 3,
                    'url' => '/admin/merchant/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '店铺助手',
                    'sort' => 4,
                    'url' => '/admin/appfeature/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '仓库设置',
                    'sort' => 5,
                    'url' => '/admin/warehouse/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '退货地址',
                    'sort' => 6,
                    'url' => '/admin/refundaddress/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '商家操作记录',
                    'sort' => 7,
                    'url' => '/admin/shopoperationlog/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
            ],
        ],
        [
            'title' => '产品管理',
            'sort' => 2,
            'url' => '#',
            'icon' => 'mdi mdi-store',
            'children' => [
                [
                    'title' => '产品管理',
                    'sort' => 1,
                    'url' => '/admin/shopgoods/index',
                    'icon' => 'mdi mdi-package-variant-closed',
                ],
                [
                    'title' => '产品分类',
                    'sort' => 2,
                    'url' => '/admin/shopcategory/index',
                    'icon' => 'mdi mdi-file-tree',
                ],
                [
                    'title' => '产品品牌',
                    'sort' => 3,
                    'url' => '/admin/shopbrand/index',
                    'icon' => 'mdi mdi-star-circle',
                ],
                [
                    'title' => '产品单位',
                    'sort' => 4,
                    'url' => '/admin/shopunit/index',
                    'icon' => 'mdi mdi-star-circle',
                ],
                [
                    'title' => '标签管理',
                    'sort' => 5,
                    'url' => '/admin/shoptag/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
            ],
        ],
        [
            'title' => '订单管理',
            'sort' => 3,
            'url' => '#',
            'icon' => 'mdi mdi-wallet-giftcard',
            'children' => [
                [
                    'title' => '订单管理',
                    'sort' => 1,
                    'url' => '/admin/shoporder/index',
                    'icon' => 'mdi mdi-view-list',
                ],
                [
                    'title' => '订单发货',
                    'sort' => 2,
                    'url' => '/admin/shopordershipping/index',
                    'icon' => 'mdi mdi-cube-send',
                ],
                [
                    'title' => '发货记录',
                    'sort' => 3,
                    'url' => '/admin/deliverylog/index',
                    'icon' => 'mdi mdi-calendar-text',
                ],
                [
                    'title' => '订单日志',
                    'sort' => 4,
                    'url' => '/admin/shoporderaction/index',
                    'icon' => 'mdi mdi-receipt',
                ],
                [
                    'title' => '退款订单',
                    'sort' => 5,
                    'url' => '/admin/refundorder/index',
                    'icon' => 'mdi mdi-television-guide',
                ],
                [
                    'title' => '退款处理记录',
                    'sort' => 6,
                    'url' => '/admin/refundhandlehistory/index',
                    'icon' => 'mdi mdi-television-guide',
                ],
                [
                    'title' => '评论管理',
                    'sort' => 7,
                    'url' => '/admin/comment/index',
                    'icon' => 'mdi mdi-television-guide',
                ],
                [
                    'title' => '快递公司',
                    'sort' => 8,
                    'url' => '/admin/shippingcom/index',
                    'icon' => 'mdi mdi-television-guide',
                ],
                [
                    'title' => '运费模板',
                    'sort' => 9,
                    'url' => '/admin/shippingarea/index',
                    'icon' => 'mdi mdi-book-open',
                ],
            ],
        ],
        [
            'title' => '会员管理',
            'sort' => 4,
            'url' => '#',
            'icon' => 'mdi mdi-account-circle',
            'children' => [
                [
                    'title' => '会员管理',
                    'sort' => 1,
                    'url' => '/admin/member/index',
                    'icon' => 'mdi mdi-account-box-outline',
                ],
                [
                    'title' => '实名认证',
                    'sort' => 2,
                    'url' => '/admin/membercation/index',
                    'icon' => 'mdi mdi-trophy-award',
                ],
                [
                    'title' => '会员等级',
                    'sort' => 3,
                    'url' => '/admin/memberlevel/index',
                    'icon' => 'mdi mdi-trophy-award',
                ],
                [
                    'title' => '会员日志',
                    'sort' => 4,
                    'url' => '/admin/memberlog/index',
                    'icon' => 'mdi mdi-trophy-award',
                ],
                [
                    'title' => '收货地址',
                    'sort' => 5,
                    'url' => '/admin/memberaddress/index',
                    'icon' => 'mdi mdi-bulletin-board',
                ],
                [
                    'title' => '会员卡管理',
                    'sort' => 6,
                    'url' => '#',
                    'icon' => 'mdi mdi-cube-send',
                    'children' => [
                        [
                            'title' => '会员卡',
                            'sort' => 1,
                            'url' => '/admin/membercard/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '会员权益',
                            'sort' => 2,
                            'url' => '/admin/memberright/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '会员卡类型',
                            'sort' => 3,
                            'url' => '/admin/membercardtype/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '会员卡批次',
                            'sort' => 4,
                            'url' => '/admin/membercardbatch/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                    ],
                ],
                [
                    'title' => '签到记录',
                    'sort' => 7,
                    'url' => '/admin/membersign/index',
                    'icon' => 'mdi mdi-file-tree',
                ],
                [
                    'title' => '分销关系',
                    'sort' => 8,
                    'url' => '/admin/member/tree',
                    'icon' => 'mdi mdi-file-tree',
                ],
                [
                    'title' => '升级记录',
                    'sort' => 9,
                    'url' => '/admin/memberlevelup/index',
                    'icon' => 'mdi mdi-bulletin-board',
                ],
            ],
        ],
        [
            'title' => '代理管理',
            'sort' => 5,
            'url' => '#',
            'icon' => 'mdi mdi-cash',
            'children' => [
                [
                    'title' => '代理管理',
                    'sort' => 1,
                    'url' => '/admin/agent/index',
                    'icon' => 'mdi mdi-account-box-outline',
                ],
                [
                    'title' => '代理等级',
                    'sort' => 2,
                    'url' => '/admin/agentlevel/index',
                    'icon' => 'mdi mdi-trophy-award',
                ],
                [
                    'title' => '升级记录',
                    'sort' => 3,
                    'url' => '/admin/agentlevelup/index',
                    'icon' => 'mdi mdi-bulletin-board',
                ],
                [
                    'title' => '代理日志',
                    'sort' => 3,
                    'url' => '/admin/agentlog/index',
                    'icon' => 'mdi mdi-bulletin-board',
                ],
            ],
        ],
        [
            'title' => '资金管理',
            'sort' => 6,
            'url' => '#',
            'icon' => 'mdi mdi-cash',
            'children' => [
                [
                    'title' => '钱包管理',
                    'sort' => 1,
                    'url' => '/admin/wallet/index',
                    'icon' => 'mdi mdi-square-inc-cash',
                ],
                [
                    'title' => '钱包日志',
                    'sort' => 2,
                    'url' => '/admin/wallethistory/index',
                    'icon' => 'mdi mdi-square-inc-cash',
                ],
                [
                    'title' => '提现申请',
                    'sort' => 3,
                    'url' => '/admin/withdrawal/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
                [
                    'title' => '收款账户',
                    'sort' => 4,
                    'url' => '/admin/memberpayment/index',
                    'icon' => 'mdi mdi-square-inc-cash',
                ],
                [
                    'title' => '充值记录',
                    'sort' => 5,
                    'url' => '/admin/memberrecharge/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
                [
                    'title' => '分成日志',
                    'sort' => 6,
                    'url' => '/admin/rebatlog/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
                [
                    'title' => '收益记录',
                    'sort' => 7,
                    'url' => '/admin/incomerecord/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
                [
                    'title' => '分账记录',
                    'sort' => 8,
                    'url' => '/admin/separatehistory/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
                [
                    'title' => '数据统计',
                    'sort' => 9,
                    'url' => '/admin/assistant/index',
                    'icon' => 'mdi mdi-flag-variant',
                ],
            ],
        ],
        [
            'title' => '内容管理',
            'sort' => 7,
            'url' => '＃',
            'icon' => 'mdi mdi-library-books',
            'children' => [
                [
                    'title' => '内容管理',
                    'sort' => 1,
                    'url' => '/admin/cmscontent/index',
                    'icon' => 'mdi mdi-book-open',
                ],
                [
                    'title' => '栏目管理',
                    'sort' => 2,
                    'url' => '/admin/cmscategory/index',
                    'icon' => 'mdi mdi-file-tree',
                ],
                [
                    'title' => '广告位置',
                    'sort' => 3,
                    'url' => '/admin/cmsposition/index',
                    'icon' => 'mdi mdi-bullhorn',
                ],
                [
                    'title' => '广告管理',
                    'sort' => 4,
                    'url' => '/admin/cmsbanner/index',
                    'icon' => 'mdi mdi-image-multiple',
                ],
                [
                    'title' => '标签管理',
                    'sort' => 5,
                    'url' => '/admin/cmstag/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
                [
                    'title' => '公告管理',
                    'sort' => 6,
                    'url' => '/admin/notice/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
                [
                    'title' => '协议管理',
                    'sort' => 7,
                    'url' => '/admin/protocol/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
                [
                    'title' => '意见反馈',
                    'sort' => 8,
                    'url' => '/admin/question/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
            ],
        ],
        [
            'title' => '营销管理',
            'sort' => 8,
            'url' => '#',
            'icon' => 'mdi mdi-google-photos',
            'children' => [
                [
                    'title' => '优惠券',
                    'sort' => 1,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '优惠券',
							'sort' => 1,
							'url' => '/admin/shopcouponlist/index',
							'icon' => 'mdi mdi-credit-card',
						],
						[
							'title' => '优惠券类型',
							'sort' => 2,
							'url' => '/admin/shopcoupontype/index',
							'icon' => 'mdi mdi-cards',
						],
						[
							'title' => '优惠券管理',
							'sort' => 3,
							'url' => '/admin/shopcouponcenter/index',
							'icon' => 'mdi mdi-cards',
						],
					],
                ],
                [
                    'title' => '秒杀活动',
                    'sort' => 2,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '秒杀设置',
							'sort' => 1,
							'url' => '/admin/shopflashsale/index',
							'icon' => 'mdi mdi-credit-card',
						],
						[
							'title' => '秒杀商品',
							'sort' => 2,
							'url' => '/admin/shopflashsalegoods/index',
							'icon' => 'mdi mdi-cards',
						],
						[
							'title' => '秒杀记录',
							'sort' => 3,
							'url' => '/admin/shopflashsalerestriction/index',
							'icon' => 'mdi mdi-cards',
						],
					],
				],
                [
                    'title' => '限时砍价',
                    'sort' => 3,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '砍价设置',
							'sort' => 1,
							'url' => '/admin/shophaggle/index',
							'icon' => 'mdi mdi-credit-card',
						],
						[
							'title' => '砍价商品',
							'sort' => 2,
							'url' => '/admin/shophagglegoods/index',
							'icon' => 'mdi mdi-cards',
						],
						[
							'title' => '活动记录',
							'sort' => 3,
							'url' => '/admin/shophagglerecord/index',
							'icon' => 'mdi mdi-cards',
						],
					],
				],
                [
                    'title' => '满送、满减活动',
                    'sort' => 4,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '活动规则',
							'sort' => 1,
							'url' => '/admin/mansongrule/index',
							'icon' => 'mdi mdi-credit-card',
						],
						[
							'title' => '活动商品',
							'sort' => 2,
							'url' => '/admin/mansonggoods/index',
							'icon' => 'mdi mdi-cards',
						],
						[
							'title' => '活动记录',
							'sort' => 3,
							'url' => '/admin/mansonghistory/index',
							'icon' => 'mdi mdi-cards',
						],
					],
				],
                [
                    'title' => '积分商城',
                    'sort' => 5,
                    'url' => '/admin/pointsgoods/index',
                    'icon' => 'mdi mdi-credit-card',
				],
                [
                    'title' => '红包管理',
                    'sort' => 6,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '红包配置',
							'sort' => 1,
							'url' => '/admin/redpacketsetting/index',
							'icon' => 'mdi mdi-credit-card',
						],
					],
				],
                [
                    'title' => 'APP主题',
                    'sort' => 7,
                    'url' => '/admin/theme/index',
                    'icon' => 'mdi mdi-tag-outline',
                ],
            ],
        ],
        [
            'title' => '应用设置',
            'sort' => 9,
            'url' => '#',
            'icon' => 'mdi mdi-bulletin-board',
            'children' => [
                [
                    'title' => '公众号',
                    'sort' => 1,
                    'url' => '#',
                    'icon' => 'mdi mdi-cube-send',
                    'children' => [
                        [
                            'title' => '基础配置',
                            'sort' => 1,
                            'url' => '/admin/appseeting.basis/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '微信菜单',
                            'sort' => 2,
                            'url' => '/admin/appseeting.menu/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '图文管理',
                            'sort' => 3,
                            'url' => '/admin/appseeting.imagetext/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '自动回复',
                            'sort' => 4,
                            'url' => '/admin/appseeting.autoreply/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                        [
                            'title' => '微信会员卡券',
                            'sort' => 5,
                            'url' => '/admin/appseeting.card/index',
                            'icon' => 'mdi mdi-cube-send',
                        ],
                    ],
                ],
                [
                    'title' => '小程序',
                    'sort' => 2,
                    'url' => '/admin/appseeting.routine/index',
                    'icon' => 'mdi mdi-calendar-text',
                ],
                [
                    'title' => 'PC',
                    'sort' => 3,
                    'url' => '/admin/appseeting.pc/index',
                    'icon' => 'mdi mdi-calendar-text',
                ],
                [
                    'title' => 'APP',
                    'sort' => 4,
                    'url' => '/admin/appseeting.app/index',
                    'icon' => 'mdi mdi-calendar-text',
                ],
                [
                    'title' => '消息设置',
                    'sort' => 5,
                    'url' => '/admin/messageseeting/index',
                    'icon' => 'mdi mdi-calendar-text',
                ],
            ],
        ],
        [
            'title' => '系统维护',
            'sort' => 10,
            'url' => '#',
            'icon' => 'mdi mdi-google-photos',
            'children' => [
                [
                    'title' => '系统设置',
                    'sort' => 1,
                    'url' => '/admin/systemsetting/index',
                    'icon' => 'mdi mdi-cards',
                ],
                [
                    'title' => '开发配置',
                    'sort' => 2,
                    'url' => '#',
                    'icon' => 'mdi mdi-credit-card',
					'children' => [
						[
							'title' => '配置分类',
							'sort' => 1,
							'url' => '/admin/dicttype/index',
							'icon' => 'mdi mdi-credit-card',
						],
						[
							'title' => '组合数据',
							'sort' => 2,
							'url' => '/admin/datagroup/index',
							'icon' => 'mdi mdi-cards',
						],
					],
                ],
                [
                    'title' => '安全维护',
                    'sort' => 3,
                    'url' => '#',
                    'icon' => 'mdi mdi-cards',
					'children' => [
						[
							'title' => '刷新缓存',
							'sort' => 1,
							'url' => '/admin/clearcache/index',
							'icon' => 'mdi mdi-credit-card',
						],
					],
                ],
                [
                    'title' => '对外接口账号',
                    'sort' => 4,
                    'url' => '/admin/outaccount/index',
                    'icon' => 'mdi mdi-cards',
                ],
            ],
        ],
    ];
    
    public function getProtectedTables()
    {
        return ['_empty_'];
    }
}
